package com.svms.save.vo;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
/**
 * 授权
 * @author xuyang
 *
 */
public class LicenseVo {
	/**授权网卡地址*/
	private List<String> macList = new ArrayList<String>();
	/**授权截止日期*/
	private String endDate = "";
	/**授权开始日期*/
	private String startDate = "";
	/**授权单位*/
	private String org;
	private String state = "2";
	private String errMsg = "";
	private String version = "";
	
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public List<String> getMacList() {
		return macList;
	}
	public void setMacList(List<String> macList) {
		this.macList = macList;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getOrg() {
		return org;
	}
	public void setOrg(String org) {
		this.org = org;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getErrMsg() {
		return errMsg;
	}
	public void setErrMsg(String errMsg) {
		if(StringUtils.isNotBlank(errMsg)) {
			this.state = "1";
		}else {
			this.state = "0";
		}
		this.errMsg = errMsg;
	}
}
